Skip to content

Conversation

finalyards
Copy link
Contributor

The upcoming embassy changes in esp-hal are already documented, and can be prepared for.

This PR updates the examples/esp32 to be prepared for the next 1.0.0-rc version. I advocate that this wouldn't be merged, until rc1 or similar, is released. But we can already fine tune the examples.

esp-radio = { version = "0.15.0", features = [ "unstable", "ble" ] }
esp-preempt = { version = "0.0.1", features = ["log-04"] }
esp-radio = { version = "0.15.0", features = ["ble", "log-04", "unstable"] }
esp-rtos = { version = "0.0.1", features = ["embassy", "log-04"] }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Background: esp-hal-embassy will be gone; esp-preempt was the interim name for the replacement, which eventually will be esp-rtos. The purpose (of esp-hal) is to consolidate async under one module. .

#[cfg(feature = "esp32")]
{
esp_hal_embassy::init(timg0.timer1);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those blocks are no longer needed, due to the API change (esp_rtos).

use esp_radio::Controller;
use static_cell::StaticCell;
//use esp_radio::Controller;
//use static_cell::StaticCell;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From here on, it's the same story for each of the samples.

@finalyards finalyards marked this pull request as draft October 3, 2025 12:44
@jamessizeland
Copy link
Collaborator

thanks for doing this!

@HaoboGu
Copy link
Collaborator

HaoboGu commented Oct 14, 2025

1.0.0-rc1 was released yesterday

@finalyards finalyards force-pushed the pr-esp-hal-031025 branch 2 times, most recently from 736d8bd to 9b171b4 Compare October 15, 2025 09:50
esp-alloc = { version = "0.9.0" }
esp-println = { version = "0.16.0", features = ["log-04"] }
esp-radio = { version = "0.16.0", features = ["ble", "log-04", "unstable"] }
esp-rtos = { version = "0.1.1", features = ["embassy", "esp-alloc", "esp-radio", "log-04"] }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the esp-alloc feature is needed. Likely works both with or without.

@finalyards finalyards marked this pull request as ready for review October 15, 2025 10:17
@HaoboGu
Copy link
Collaborator

HaoboGu commented Oct 16, 2025

/test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants